module.exports = (request,response) => {
  return {
    code: 200,
      msg: '获取路由成功！',
      data: [{
          path: 'order',
          title: '订单管理',
          icon: 'fa fa-building-o',
          component: 'Order',
          redirect: 'order/list',
          children: [
            {
              path: 'list',
              title: '全部订单',
              component: 'OrderList'
            },
            {
              path: 'wait-delivery',
              title: '待发货',
              component: 'OrderWaitDelivery'
            }, {
              path: 'deliveryed',
              title: '已发货',
              component: 'OrderDeliveryed'
            }, {
              path: 'wait-receiving',
              title: '待收货',
              component: 'OrderWaitReceiving'
            }, {
              path: 'received',
              title: '已收货',
              component: 'OrderReceived'
            }, {
              path: 'closed',
              title: '已关闭',
              component: 'OrderClosed'
            }
          ]
        },
        {
          path: 'goods',
          title: '商品管理',
          icon: 'fa fa-shopping-bag',
          component: 'Goods',
          redirect: 'goods/list',
          children: [{
              path: 'list',
              title: '商品列表',
              component: 'GoodsList',
            },
            {
              path: 'category',
              title: '商品分类',
              component: 'GoodsCategory',
            },
            {
              path: 'attr',
              title: '商品属性',
              component: 'GoodsAttr',
            },
          ]
        },
        {
          path: 'member',
          title: '会员管理',
          icon: 'fa fa-users',
          component: 'Member',
          redirect: 'member/list',
          children: [{
              path: 'list',
              title: '会员列表',
              component: 'MemberList',
            },
            {
              path: 'rank',
              title: '会员等级',
              component: 'MemberRank',
            }
          ]
        },
        {
          path: 'system',
          title: '系统管理',
          icon: 'fa fa-gear',
          component: 'System',
          children: [{
              title: '后台账号管理',
              path: 'user',
              component: 'SystemUser',
              redirect: 'user/list',
              children: [{
                  title: '后台账号列表',
                  path: 'list',
                  component: 'SystemUserList',
                },
                {
                  title: '编辑账号信息',
                  path: 'edit/:uid',
                  component: 'SystemUserEidt',
                }, {
                  title: '添加后台账号',
                  path: 'add',
                  component: 'SystemUserAdd',
                }
              ]
            },
            {
              title: '角色管理',
              path: 'role',
              component: 'SystemRole',
              redirect: 'role/list',
              children: [{
                title: '系统角色列表',
                path: 'list',
                component: 'SystemRoleList'
              }, {
                title: '添加系统角色',
                path: 'add',
                component: 'SystemRoleAdd'
              }, {
                title: '编辑系统角色',
                path: 'edit',
                component: 'SystemRoleEdit'
              }]
            },
            {
              title: '权限管理',
              path: 'scope',
              component: 'SystemScope',
              redirect: 'scope/list',
              children: [{
                title: '权限列表',
                path: 'list',
                component: 'SystemScopeList'
              }, {
                title: '编辑权限',
                path: 'edit',
                component: 'SystemScopeEdit'
              }]
            },
            {
              title: '前端路由表管理',
              path: 'route',
              component: 'SystemRoute',
              redirect: 'route/list',
              children: [{
                title: '前端路由列表',
                path: 'list',
                component: 'SystemRouteList'
              }, {
                title: '编辑前端路由',
                path: 'edit',
                component: 'SystemRouteEdit'
              }, {
                title: '添加前端路由',
                path: 'add',
                component: 'SystemRouteAdd'
              }, {
                title: '查看前端子路由',
                path: 'child',
                component: 'SystemRouteChild'
              }
            ]
            }
          ]
        },
        {
          path: 'cart',
          title: '用户购物车',
          icon: 'fa fa-shopping-cart ',
          component: 'Cart',
          redirect: 'cart/list',
          children: [{
            title: '购物车列表',
            path: 'list',
            component: 'CartList',
          }]
        },
        {
          path: 'mina-shop',
          title: '小程序管理',
          icon: 'fa fa-wechat',
          component: 'Minashop',
          redirect: 'mina-shop/banner',
          children: [{
              title: '首页轮播图',
              path: 'banner',
              component: 'MinashopBanner',
            },
            {
              title: '公告管理',
              path: 'notice',
              component: 'MinashopNotice',
            },
            {
              title: '商品分类导航',
              path: 'nav',
              component: 'MinashopNav',
            },
            {
              title: '广告管理',
              path: 'advertisement',
              component: 'MinashopAdvertisement',
            },
            {
              title: '商城主题管理',
              path: 'theme',
              component: 'MinashopTheme',
            }, {
              title: '运费模板管理',
              path: 'postage',
              component: 'MinashopPostage',
            }
          ]
        }
      ]
  }
}